package com.entity;


public class Flight {

    private String takeoffTime;

    private String flyingTime;

    private String startPlace;

    private String endPlace;

    private Integer ticket;

    private Integer price;

    private Integer flights;

    public String getTakeoffTime() {
        return takeoffTime;
    }

    public void setTakeoffTime(String takeoffTime) {
        this.takeoffTime = takeoffTime == null ? null : takeoffTime.trim();
    }

    public String getFlyingTime() {
        return flyingTime;
    }

    public void setFlyingTime(String flyingTime) {
        this.flyingTime = flyingTime == null ? null : flyingTime.trim();
    }

    public String getStartPlace() {
        return startPlace;
    }

    public void setStartPlace(String startPlace) {
        this.startPlace = startPlace == null ? null : startPlace.trim();
    }

    public String getEndPlace() {
        return endPlace;
    }

    public void setEndPlace(String endPlace) {
        this.endPlace = endPlace == null ? null : endPlace.trim();
    }

    public Integer getTicket() {
        return ticket;
    }

    public void setTicket(Integer ticket) {
        this.ticket = ticket;
    }

    public Integer getPrice(Integer price) {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getFlights() {
        return flights;
    }

    public void setFlights(Integer flights) {
        this.flights = flights;
    }

    //
    public Flight() {
    }

    public Flight(String takeoffTime, String flyingTime, String startPlace, String endPlace, Integer ticket, Integer price, Integer flights) {
        this.takeoffTime = takeoffTime;
        this.flyingTime = flyingTime;
        this.startPlace = startPlace;
        this.endPlace = endPlace;
        this.ticket = ticket;
        this.price = price;
        this.flights = flights;
    }

    @Override
    public String toString() {
        return "Flight{" +
                "takeoffTime='" + takeoffTime + '\'' +
                ", flyingTime='" + flyingTime + '\'' +
                ", startPlace='" + startPlace + '\'' +
                ", endPlace='" + endPlace + '\'' +
                ", ticket=" + ticket +
                ", price=" + price +
                ", flights=" + flights +
                '}';
    }
}